package com.truba.ohostouchgallery.TouchView;

import ru.truba.touchgrallery.TouchView.TouchImageView;
import com.truba.ohostouchgallery.Init;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class TouchImageViewTest {

    private final Init init = new Init();

    private final TouchImageView touchImageView = new TouchImageView(init.mContext);

    @Before
    public void setUp() {
        touchImageView.setZoomToOriginalSize(true);
        assertTrue(touchImageView.isZoomToOriginalSize());
    }

    @Test
    public void pagerCanScroll() {
        boolean state = touchImageView.pagerCanScroll();
        assertTrue(state);
    }
}